%% TikZ
\usepackage[version=latest]{pgf}
\usepackage{tikz}

% \usetikzlibrary{
%   automata,%
%   arrows,%
%   calc,%
%   decorations.pathmorphing,%
%   %calendar,%
%   chains,%
%   fit,%
%   shapes,%
%   shapes.geometric,%
%   shapes.misc,%
%   shapes.symbols,%
%   shapes.arrows,%
%   shapes.callouts,%
%   shapes.multipart,%
%   backgrounds,%
%   matrix,%
%   fadings,%
%   through,%
%   patterns,%
%   positioning,%
%   scopes,%
%   shadows,
%   decorations.shapes,%
%   decorations.pathmorphing,%
%   decorations.text,%
%   shadows,%
%   trees,%
%   snakes,%
%   petri
% }

\usetikzlibrary{%
  automata,%
  arrows,%
  calc,%
  calendar,%
  fit,%
  shapes,%
  shapes.geometric,%
  shapes.misc,%
  shapes.symbols,%
  shapes.arrows,%
  shapes.callouts,%
  shapes.multipart,%
  backgrounds,%
  matrix,%
  fadings,%
  through,%
  patterns,%
  positioning,%
  scopes,%
  shadows,%
  decorations.shapes,%
  decorations.pathmorphing,%
  decorations.text,%
  shadows,%
  trees,%
  snakes%
}

\tikzset{para/.style={shade,bottom color=#1,shading angle=180}}
\tikzset{snakelink/.style={-stealth,line width=2pt}}
\tikzset{zone/.style={circle,shading=radial,inner color=#1!yellow,draw=blue!50,line width=2pt}}

 \tikzset{para/.style={shade,top color=#1,bottom color=white,shading angle=180}}
 \tikzset{fuzzywave/.style={decorate, decoration={snake,amplitude=0.5mm,segment length=4mm}}}
 \tikzset{backward/.style={ >=stealth, very thick, shorten >=5pt, decorate, decoration={snake,amplitude=0.3mm,segment length=5mm,post length=2mm}}}
 \tikzset{forward/.style={ >=stealth, ultra thick, shorten >=5pt, dotted }}
 \tikzset{transitionLabel/.style={ midway, anchor=center, ellipse, fill=white, inner sep=1pt, scale=0.5,draw,thin }}
